﻿using CoreColution.Enum.BasicsEnum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CoreColution.EntityDto.Basics
{
    /// <summary>
    /// 用户信息
    /// </summary>
   public class UserInfoDto: _baseDto
    {
        [Required]
        [Display(Name = "用户名")]
        public string UserName { get; set; }

        [Display(Name = "真实姓名")]
        public string RealName { get; set; }

        [Display(Name = "邮箱")]
        public string Email { get; set; }

        [Display(Name = "邮箱确认")]
        public bool IsEmailConfirmed { get; set; }

        [Required]
        [Display(Name = "手机号码")]
        public string PhoneNum { get; set; }

        [Display(Name = "手机号码确认")]
        public bool IsPhoneNumConfirmed { get; set; }

        //[Required]
        //[Display(Name = "密码")]
        //public string Password { get; set; }

        [Required]
        [Display(Name = "用户类型")]
        public UserType UserType { get; set; }

        [Display(Name = "性别")]
        public bool Sex { get; set; }

        [Display(Name = "头像")]
        public string Picture { get; set; }

        [Display(Name = "年龄")]
        public int Age { get; set; }

    }

    /// <summary>
    /// 用户搜索
    /// </summary>
    public class UserInfoSearch: PageList
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string PhoneNum { get; set; }
        
        /// <summary>
        /// 用户类型
        /// </summary>
        public UserType? UserType { get; set; }
    }
}
